/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fontmanager;

import java.awt.Component;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import pluginTable.Table;

/**
 *
 * @author masdos
 */
public class FontSet implements ActionListener{

//supprime la classe FontSet, metre le code dans MenuFormat
private Frame mainFrame = new Frame();
private Table.Table compoSelection = new Table.Table();
    
private List listcompo = compoSelection.getCompoSelected();
    
JFontChooser jf = new JFontChooser(mainFrame, listcompo);
jf.setVisible;
JButton button = jf.getokButton();
    @Override
    public void actionPerformed(ActionEvent e) {
        jf.closeAndApply();
    }
    
}

/*
 public static void main(String [] args)
    {
        
        Frame fenetre = new Frame();
        
    JFrame fenetre1 = new JFrame();
    fenetre1.setTitle("Ma premiere fenetre Java");
    fenetre1.setSize(400, 100);
    fenetre1.setLocationRelativeTo(null);
    fenetre1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     
    fenetre1.setVisible(true);
        
        JLabel ediPane = new JLabel();
        ediPane.setText("j'affiche du text.");
        fenetre1.add(ediPane);
        JFontChooser chooser = new JFontChooser(fenetre, ediPane, null);
        fenetre.setVisible(true);
        chooser.setVisible(true);
    }*/